package com.itheima.demo03;

import java.util.concurrent.ArrayBlockingQueue;

/**
 * @author Zhang_Han
 * @version 1.0
 * @date 2020/7/13 15:55
 */
public class Demo {
    public static void main(String[] args) {
        //创建阻塞队列对象;
        ArrayBlockingQueue<String> list = new ArrayBlockingQueue<>(1);

        Cooker c = new Cooker(list);
        Fooder f = new Fooder(list);
        c.start();
        f.start();
    }
}
